<?php
/**
 * Created by PhpStorm.
 * User: teemo
 * Date: 16-6-4
 * Time: 下午3:03
 */
namespace modules\dashboard;

class storage{
    static function schemas(): array
    {
        return [];  // @users/user
    }

   static function count($q, int $org, string $table, bool $active=true)
   {
        return $q->table($table)
            ->where(['active', $active])
            ->where(['org', $org])
            ->field('id')
            ->select();
    }
}

